<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php include 'sidebar.php'; ?>
        <div id="content">
            <div class="slide-container">
                <div class="slide-stage">
                    <div class="slide-image"><img src="<?php echo URL_BASE ?>/templates/default/images/slideshow/anh1_1.jpg"/></div>
                    <div class="slide-image"><img src="<?php echo URL_BASE ?>/templates/default/images/slideshow/anh1.jpg"/></div>
                    <div class="slide-image"><img src="<?php echo URL_BASE ?>/templates/default/images/slideshow/anh2.jpg"/></div>
                    <div class="slide-image"><img src="<?php echo URL_BASE ?>/templates/default/images/slideshow/anh3.jpg"/></div>
                    <div class="slide-image"><img src="<?php echo URL_BASE ?>/templates/default/images/slideshow/anh4.jpg"/></div>
                </div>
                <div class="slide-pager">
                    <ul></ul>
                    <div class="slide-control-prev">«</div>
                    <div class="slide-control-next">»</div>
                </div>
            </div>
            <div id="products">
                <div class="paging">
                    <div class="first">
                        <h2>Thời trang mới về</h2>
                    </div>
                </div><!---END #paging--->
                <?php
                $product = new Default_Model_Product();
                $product_new = $product->getProduct();
                foreach ($product_new as $key => $value) {
                    ?>

                    <div class="product">
                        <div class="product-img"><a href="product-detail.php?pro_id=<?php echo $value['id'] ?>"><img src="<?php echo URL_BASE ?>/templates/default/<?php echo $value['pro_img']; ?>" alt="sp1"/></a></div>
                        <div class="product-name"><a href="product-detail.php?pro_id=<?php echo $value['id'] ?>"><?php echo $value['pro_name'] ?></a></div>
                        <div class="product-id"><p>Mã số:<?php echo $value['id'] ?></p></div>
                        <div class="product-price-old"><strike>Giá cũ: <?php echo number_format($value['pro_price_old']) ?>đ</strike></div>
                        <div class="product-price"><span>Giá mới: <?php echo number_format($value['pro_price']) ?>đ</span></div>
                    </div><!---END .product-->
                    <?php
                }
                ?>
                    
            </div>
                        <div id="products">
                <div class="paging">
                    <div class="first">
                        <h2>Thời trang bán chạy nhất</h2>
                    </div>
                </div><!---END #paging--->
                <?php
                $product = new Default_Model_Product();
                $product_betseller = $product->getProductBetSeller();
                foreach ($product_betseller as $key => $value) {
                    ?>

                    <div class="product">
                        <div class="product-img"><a href="product-detail.php?pro_id=<?php echo $value['id'] ?>"><img src="<?php echo URL_BASE ?>/templates/default/<?php echo $value['pro_img']; ?>" alt="sp1"/></a></div>
                        <div class="product-name"><a href="product-detail.php?pro_id=<?php echo $value['id'] ?>"><?php echo $value['pro_name'] ?></a></div>
                        <div class="product-id"><p>Mã số:<?php echo $value['id'] ?></p></div>
                        <div class="product-price-old"><strike>Giá cũ: <?php echo number_format($value['pro_price_old']) ?>đ</strike></div>
                        <div class="product-price"><span>Giá mới: <?php echo number_format($value['pro_price']) ?>đ</span></div>
                    </div><!---END .product-->
                    <?php
                }
                ?>
                    
            </div>
        </div>
    </body>
</html>
